package com.nan.hrm;

import com.nan.hrm.domain.LoginUser;
import com.nan.hrm.util.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@RequestMapping("/loginUser")
@FeignClient(value = "auth-server",fallbackFactory = LoginUserClientHystrixFallbackFactory.class)
public interface LoginUserClient {
    @PutMapping
    public AjaxResult addOrUpdate(@RequestBody LoginUser loginUser);
}
